﻿<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/App_MasterPages/layout.Master"
    CodeBehind="AdminSalesByModule.aspx.cs" Inherits="eStore.UI.SalesByModulePage" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
    <portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
        <mp:CornerRounderTop ID="ctop1" runat="server" EnableViewState="false" />
        <asp:Panel ID="pnl1" runat="server" CssClass="art-Post-inner panelwrapper admin">
            <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
                <div class="modulecontent">
                    <div class="breadcrumbs">
                        <asp:HyperLink ID="lnkCommerceReports" runat="server" NavigateUrl="~/eStore/SalesSummary.aspx" />&nbsp;&gt;
                        <asp:HyperLink ID="lnkThisPage" runat="server" CssClass="selectedcrumb" />
                    </div>
                    <fieldset>
                        <legend>
                            <asp:Literal ID="ltrTitle" runat="server"></asp:Literal>
                        </legend><strong>
                            <asp:Literal ID="litAllTimeRevenue" runat="server" /></strong>
                        <div>
                            <div>
                                <zgw:ZedGraphWeb ID="zgSales" runat="server" RenderMode="ImageTag" Width="720" Height="300">
                                </zgw:ZedGraphWeb>
                            </div>
                            <div class="floatpanel">
                                <div>
                                    &nbsp;</div>
                                <div class="floatpanel">
                                    <mp:mojoGridView ID="grdSalesByYear" runat="server" AllowPaging="false" AllowSorting="false"
                                        AutoGenerateColumns="false" EnableTheming="false" SkinID="plain">
                                        <Columns>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <%# Eval("Y") %>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <%# string.Format(currencyCulture, "{0:c}", Convert.ToDecimal(Eval("Sales"))) %>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </mp:mojoGridView>
                                    <div>
                                        &nbsp;</div>
                                </div>
                                <div class="floatpanel">
                                    <mp:mojoGridView ID="grdSales" runat="server" AllowPaging="false" AllowSorting="false"
                                        AutoGenerateColumns="false" EnableTheming="false" SkinID="plain">
                                        <Columns>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <%# Eval("Y") %>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <%# Eval("M") %>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <%# string.Format(currencyCulture, "{0:c}", Convert.ToDecimal(Eval("Sales"))) %>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </mp:mojoGridView>
                                    <div>
                                        &nbsp;</div>
                                </div>
                                <div class="floatpanel">
                                    <mp:mojoGridView ID="grdTopItems" runat="server" AllowPaging="false" AllowSorting="false"
                                        AutoGenerateColumns="false" EnableTheming="false" SkinID="plain">
                                        <Columns>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <a href='<%# SiteRoot + "/eStore/AdminSalesByItem.aspx?i=" + Eval("ItemGuid") %>'>
                                                        <%# Eval("ItemName")%></a>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <%# Eval("UnitsSold")%>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField>
                                                <ItemTemplate>
                                                    <%# string.Format(currencyCulture, "{0:c}", Convert.ToDecimal(Eval("Revenue"))) %>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </mp:mojoGridView>
                                    <div>
                                        <asp:HyperLink ID="lnkAllItems" runat="server" /></div>
                                </div>
                            </div>
                        </div>
                        <div class="cleared">
                        </div>
                    </fieldset>
                </div>
            </portal:mojoPanel>
            <div class="cleared">
            </div>
        </asp:Panel>
        <mp:CornerRounderBottom ID="cbottom1" runat="server" EnableViewState="false" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
